/**
 * Created by 1 on 2016/7/5.
 */
Ext.define('Monkey.store.menu.Menu', {
    extend: 'Monkey.store.BaseTreeStore',
    alias: 'store.menutree',

    model: 'Monkey.model.menu.Menu',
    nodeParam: 'parentId',
    defaultRootId: '1',
    root: {
        expanded: true
    },
    proxy: {
        type: 'ajax',
        url: Monkey.URL.SERVER_URL + "/m/children_menus.json",
        extraParams: {
            fields: 'id,leaf,name,parentId,icon,weight,view,identity,expand,status'
        },
        reader: 'json'
    }
});